package com.app.service;

import com.app.model.CommentModel;
import com.app.vo.CommentVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 评论
 * @author 16693103420
 * @since 2024-01-22
 */
public interface CommentService extends IService<CommentModel> {
    //根据类型获取评论列表
    CommentVo getCommentByTypeList(Integer page, Integer limit,Integer relationId, Integer commentType);
    //评论列表
    CommentVo getCommentList(Integer page, Integer limit,String startTime,String endTime,Integer evaluate);
    //查询评论详情
    CommentModel getCommentById(Integer commentId);
    //保存评论信息
    @Transactional
    void userAddComment(CommentModel commentModel);

    Double getScore(Integer id);
}
